package org.example.commonapi.domain.onlineCode;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OjCode {
    /**
     * 评测的代码
     */
    @NotNull(message = "code不能为空")
    private String code;
    /**
     * 评测的语言
     */
    @NotNull(message = "language不能为空")
    private String language;

    /**
     * 改代码对应的题目id
     */
    @NotNull(message = "problemId不能为空")
    private String problemId;
}
